package org.jeecg.modules.device.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 设备记录表
 * @Author: jeecg-boot
 * @Date:   2024-04-17
 * @Version: V1.0
 */
@Data
@TableName("iot_dev_device_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="iot_dev_device_record对象", description="设备记录表")
public class DevDeviceRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**设备序列号*/
    @Excel(name = "设备", width = 15, dictTable = "iot_dev_device_info", dicText = "device_name", dicCode = "device_id")
    @Dict(dictTable = "iot_dev_device_info", dicText = "device_name", dicCode = "device_id")
    @ApiModelProperty(value = "设备序列号")
    private java.lang.String deviceId;
    /**设备类型*/
    @Excel(name = "设备类型", width = 15, dicCode = "read_drive_type")
    @Dict(dicCode = "read_drive_type")
    @ApiModelProperty(value = "设备类型")
    private java.lang.String deviceType;
	/**设备数据*/
	@Excel(name = "设备数据", width = 15)
    @ApiModelProperty(value = "设备数据")
    private java.lang.String deviceValue;
	/**数据单位*/
	@Excel(name = "数据单位", width = 15)
    @ApiModelProperty(value = "数据单位")
    private java.lang.String deviceUnit;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15)
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private java.lang.String delFlag;
	/**租户*/
	@Excel(name = "租户", width = 15)
    @ApiModelProperty(value = "租户")
    private java.lang.String tenantId;
}
